<template>
  <div class="app-container calendar-list-container">
    <el-tabs style='margin-top:15px;' v-model="activeName" type="border-card">
      <el-tab-pane v-for="item in tabMapOptions" :label="item.label" :key='item.key' :name="item.key">
        <keep-alive>
          <inquiry-list-deal v-if="activeName == 'deal'"></inquiry-list-deal>
          <inquiry-list-feedback v-if="activeName == 'feedback'"></inquiry-list-feedback>
        </keep-alive>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
  import inquiryListDeal from './inquiryList_deal.vue'
  import inquiryListFeedback from './inquiryList_feedback.vue'

  export default {
    name:'inquiryList',
    components:{
      inquiryListDeal,
      inquiryListFeedback
    },
    data(){
      return {
        tabMapOptions: [
          { label: '待处理询价单', key: 'deal' },
          { label: '询价反馈单', key: 'feedback' },
        ],
        activeName: 'deal',
      }
    }
  }
</script>
<style scoped lang="scss">

</style>
